<template>
  <div>
    <el-button @click="testApi">点击测试跨域</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      data: ''
    }
  },
  methods: {
    async testApi() {
      const data = await this.$http.get('/info3')
      console.log(data)
    }
  }
}
</script>

<style lang="less" scoped></style>
